Questa Guida permette di configurare la connessione del display DWIN ad Arduino.
-------------------------------------------------------------------------------------------------------------
INSTALLAZIONE DRIVER USB
Se il computer non ricosce il dispositivo USB per la configurazione tramite il programma "TerminalAssistant_v6"  neccessaria
l'installazione manuale.
Decomprimere il file "Driver_XR21x141x", configurare manualmente il dispositivo USB, nella cartella
ci sono sia la versione a 32 e sia quella a 64bit.
-----------------------------------------------------------------------------------------------------------------------
BAUD RATE
Setting del Baud rate tramite USB, usare il programma "TerminalAssistant_v6.exe"
- Selezionare la Port alla quale  associato il display Dwin
- Selezionare Baudrate di 921600
- Settare in property:
	- Size  320x240
	- pixel 16-bit color
- Selezionare Open Port

Verifica della corretta connesione in USB 
Cliccare sulla voce Handshake nel programma "Terminal Assistant v6", se il display  connesso correttamente
dovrebbe visualizzarsi una dialog window e nella Log WIndow dovrebbe comparire la risposta del DWin.

- Il display DWin dovrebbe avere il Screen Id settato a "0", settare nel tab "Debug Tools/Parameter Settings"
	lo screen Id a 0 e il Baudrate al valore desiderato (se si usa una board C&DMEGA si consiglia di usara una Hardware Serial e si pu usare
	un baudrate di 115200,mentre se si usa una board Arduino Uno si consiglia di settare un baud rate di 9600 perch si usa una software serial).
- Per rendere definitiva la modifica cliccare su "Set".
- close port

ora il display  pronto per essere connesso ad una board.
-----------------------------------------------------------------------------------------------------------------
COLLEGAMENTO ELETTRICO

Alimentare il Display:
	- usando un generatore di tensione a 5VDC
	- Prelevare l'alimentazione da un'uscita a 5Vdc della board.
----------------------------------------------------------------------------------------------------------------------
CARICARE UN IMMAGINE USANDO TERMINALASSISTNA V6.0 
- eseguire il programma (vedere la sezione Baudrate di questa guida)
- Caricare un immagine, se durante il caricamento dovesse risultare sfocata, il problema  dovuto all'errato setting delle properties

======================================================================================================================
This Library allows to sett the connection of the dispay DWin to Ardunino.
-----------------------------------------------------------------------------------------------------------------------------------------
INSTALLING THE USB DRIVER 
If your personal computer doesn't identify the USB device neccesary to config the display using the program "TerminalAssistant_v6",
you should installing it manually.

Unzip the file "Driver_XR21x141x", you should config manually the USB device, you can find inside the unzip folder both version 32bit and 64 bit. 
------------------------------------------------------------------------------------------------------------------------------------------
BAUD RATE
You can set the Baudrate using the USB, execute the program "TerminalAssistant_v6.exe"
- Select the port which is  identified the Dwin
- Select Baudrate to 921600
- Set the properties: 
	- Size  320x240
	- pixel 16-bit color
- Select "Open Port"

Check che USB connection is working 
CLick on Handshake in the "Terminal Assistant v6", if it is working right it should pop up a 
dialog window and inside "Log WIndow" should be printed the replay of the display.

- Open the tab "Debug Tools/Parameter Settings", configure:
	- "Screen Id" to 0
	- "Baudrate" to the would value (if you use Hardware serial the display can work with a Baudrate of 115200, otherwise if you use
		Software Serial it is better work with baudrate of 9600, with high value of baudrate you can have problems in comunication.
- click on "Set".
- close port

Now the display is ready to be connected to an Arduino.
-----------------------------------------------------------------------------------------------------------------
Electrical Connection

How to power up the display:
	- using a voltage generator to 5VDC
	- Using a output to 5VDC on your board
----------------------------------------------------------------------------------------------------------------------
Loading pictures using TERMINAL ASSISTNANT V6.0 
- Execute the program (See the point Baudrate in this Guide)
- Load one or more picture, if the immage is burry you should check it out the properties set.
